package com.wg.io.sqlSession;

import com.wg.io.pojo.Configuration;
import com.wg.io.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Mrwg
 * @date 2020/3/26 14:10
 * @description
 */
public interface Executor {
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object[] param) throws Exception;
    //add     //update  //del
    int insertSaveOrUpdate(Configuration configuration, MappedStatement mappedStatement, Object... params) throws  Exception;

    void close() throws SQLException;
}
